import sqlite3

conn = sqlite3.connect("../db.sqlite3")  # 打开或创建数据库
c = conn.cursor()  # 获取游标
sql = '''
create table data_User
(
    ID text not null,
    Permission integer not null,
    Password text,
    Address text,
    constraint user_pk
        primary key (ID,Permission)
);


'''
c.execute(sql)  # 执行sql语句
conn.commit()  # 提交数据库操作
conn.close()
print("ok")
